package com.guchenbo.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Author guchenbo
 * @Date 2020/5/18.
 */
@SpringBootApplication
public class SpringApp implements ApplicationRunner {

    @Autowired
    private GcbProperties gcbProperties;

    public static void main(String[] args) {
        SpringApplication.run(SpringApp.class, args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        gcbProperties.print();
    }
}
